<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>用户列表</title>
</head>
<body>
    <h2>服务器：${pageContext.request.localPort}</h2>
    <h2>当前sessionId：${pageContext.session.id}</h2>
    <a href="${pageContext.request.contextPath}/resume/detail">创建</a><br/>
    <table>
    <tr><td>id</td><td>姓名</td><td>地址</td><td>手机</td><td>操作</td></tr>
    <c:forEach items="${list}" var="resume">
        <tr>
            <td>${resume.id}</td>
            <td>${resume.name}</td>
            <td>${resume.address}</td>
            <td>${resume.phone}</td>
            <td><a href='${pageContext.request.contextPath}/resume/detail?id=${resume.id}'>修改</a>&nbsp;<a href='${pageContext.request.contextPath}/resume/deleteUser?id=${resume.id}'>删除</a></td></tr>
        </tr>
    </c:forEach>
</table>
</body>
</html>
